Fix the configure check for Vulkan
authorMatthias Clasen <mclasen@redhat.com>
Fri, 9 Dec 2016 19:00:48 +0000 (14:00 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 9 Dec 2016 19:00:48 +0000 (14:00 -0500)
GDK_WINDOWING_VULKAN was getting defined regardless of the tests.

configure.ac

index 8093384b2aa351980a9bd202ae36019a6d808929..d2c715862b25997b5e640bed71ea59aa298a794b 100644 (file)
@@ -1325,7 +1325,7 @@ if test "x$enable_vulkan" != "xno"; then
       vulkan_error=""
       AC_CHECK_HEADER([vulkan/vulkan.h], [], [vulkan_error="Vulkan header not found"])
       AC_CHECK_LIB([vulkan], [vkCreateInstance], [], [vulkan_error="Vulkan library not found"])
-      if test "x$vulkan_result" != "x"; then
+      if test "x$vulkan_error" != "x"; then
           if "x$enable_vulkan" = "xyes"; then
               AC_MSG_ERROR($vulkan_error)
           else